package mybatis.entity;

import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.List;

public class Order {
	private int id;
	private String order_number;
	private User user;
	private Address useraddress;
	private Timestamp submit_time;
	private int pay_method;
	private Timestamp pay_time;
	private BigDecimal origin_price;
	private BigDecimal final_price;
	private BigDecimal totalDiscount;
	private int status; //0已提交 1待支付 2已支付 3已取消
	private List<Cart> gamecount;
	private List<Game> list;
	private List<OrderItem> itemList;
	private int count;
	
	public Order() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	public List<OrderItem> getItemList() {
		return itemList;
	}

	public void setItemList(List<OrderItem> itemList) {
		this.itemList = itemList;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public List<Cart> getGamecount() {
		return gamecount;
	}

	public void setGamecount(List<Cart> gamecount) {
		this.gamecount = gamecount;
	}

	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getOrder_number() {
		return order_number;
	}
	public void setOrder_number(String order_number) {
		this.order_number = order_number;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public Address getUseraddress() {
		return useraddress;
	}
	public void setUseraddress(Address useraddress) {
		this.useraddress = useraddress;
	}
	public Timestamp getSubmit_time() {
		return submit_time;
	}
	public void setSubmit_time(Timestamp submit_time) {
		this.submit_time = submit_time;
	}
	public int getPay_method() {
		return pay_method;
	}
	public void setPay_method(int pay_method) {
		this.pay_method = pay_method;
	}
	public Timestamp getPay_time() {
		return pay_time;
	}
	public void setPay_time(Timestamp pay_time) {
		this.pay_time = pay_time;
	}
	public BigDecimal getOrigin_price() {
		return origin_price;
	}
	public void setOrigin_price(BigDecimal origin_price) {
		this.origin_price = origin_price;
	}
	public BigDecimal getFinal_price() {
		return final_price;
	}
	public void setFinal_price(BigDecimal final_price) {
		this.final_price = final_price;
	}
	public BigDecimal getTotalDiscount() {
		return totalDiscount;
	}
	public void setTotalDiscount(BigDecimal totalDiscount) {
		this.totalDiscount = totalDiscount;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public List<Game> getList() {
		return list;
	}
	public void setList(List<Game> list) {
		this.list = list;
	}
	
	@Override
	public String toString() {
		return "Order [id=" + id + ", order_number=" + order_number + ", user=" + user + ", useraddress=" + useraddress
				+ ", submit_time=" + submit_time + ", pay_method=" + pay_method + ", pay_time=" + pay_time
				+ ", origin_price=" + origin_price + ", final_price=" + final_price + ", totalDiscount=" + totalDiscount
				+ ", status=" + status + ", gamecount=" + gamecount + ", list=" + list + ", itemList=" + itemList
				+ ", count=" + count + "]";
	}
	

	
	
}
